package dataAccessLayer.factoryMySQL;

import java.util.ResourceBundle;

import dataAccessLayer.abstractFactory.Factory;
import dataAccessLayer.abstractFactory.daos.DAOcities;
import dataAccessLayer.abstractFactory.daos.DAOcustomers;
import dataAccessLayer.abstractFactory.daos.DAOmeasureUnity;
import dataAccessLayer.abstractFactory.daos.DAOsalesDetail;
import dataAccessLayer.abstractFactory.daos.DAOingredients;
import dataAccessLayer.abstractFactory.daos.DAOrecipesIngredients;
import dataAccessLayer.abstractFactory.daos.DAOpies;
import dataAccessLayer.abstractFactory.daos.DAOrecipes;
import dataAccessLayer.abstractFactory.daos.DAOusers;
import dataAccessLayer.abstractFactory.daos.DAOsales;
import dataAccessLayer.dataBase.DBManager;
import dataAccessLayer.factoryMySQL.daos.DAOcitiesMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOcustomersMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOmeasureUnityMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOsalesDetailMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOingredientsMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOrecipesIngredientsMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOpiesMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOrecipesMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOusersMySQL;
import dataAccessLayer.factoryMySQL.daos.DAOsalesMySQL;

public class FactoryMySQL extends Factory
{
	private DBManager dbManager;
	
	public FactoryMySQL()
	{
		dbManager = new DBManager(ResourceBundle.getBundle("dataAccessLayer.dataAccess").getString("connectionType"));
	}
	
	public DAOcustomers getDAOcustomers() 
	{
		return new DAOcustomersMySQL(dbManager);
	}
	
	public DAOingredients getDAOingredients() 
	{
		return new DAOingredientsMySQL(dbManager);
	}
	
	public DAOpies getDAOpies()
	{
		return new DAOpiesMySQL(dbManager);
	}
	
	public DAOrecipes getDAOrecipes() 
	{
		return new DAOrecipesMySQL(dbManager);
	}
	
	public DAOusers getDAOusers() 
	{
		return new DAOusersMySQL(dbManager);
	}
	
	public DAOsales getDAOsales() 
	{
		return new DAOsalesMySQL(dbManager);
	}
	
	public DAOcities getDAOcities() 
	{
		return new DAOcitiesMySQL(dbManager);
	}
	
	public DAOsalesDetail getDAOsalesDetail() 
	{
		return new DAOsalesDetailMySQL(dbManager);
	}
	
	public DAOrecipesIngredients getDAOrecipesIngredients() 
	{
		return new DAOrecipesIngredientsMySQL(dbManager);
	}
	
	public DAOmeasureUnity getDAOmeasureUnity() 
	{
		return new DAOmeasureUnityMySQL(dbManager);
	}

}
